package game.scene.ending;
import dgo.*;
import game.GlobalModel;
import game.scene.SceneStack;
import starruby.Texture;

public class Scene extends game.scene.BaseScene{
  private GlobalModel _globalModel;
  private Texture _authorTexture, _theEndTexture;
  
  public Scene(GlobalModel globalModel){
    _globalModel = globalModel;
    _theEndTexture = Texture.load("game/the_end");
    _authorTexture = Texture.load("game/author");
    MyLib.playBGM(getClass(), "tick");
  }

  public void update(SceneStack stack){
    if(SimpleInput.isPressedNewly("ok")){
      stack.pop();
      stack.push(new game.scene.title.Scene(_globalModel));
    }
  }
    
  public void render(Texture s){
    s.renderTexture(_theEndTexture, 80, 100);
    s.renderTexture(_authorTexture, 110, 210);
  }
}